/*    */ package com.jcrj.dao.imp;
/*    */ 
/*    */ import com.jcrj.dao.MailDao;
/*    */ import com.jcrj.entity.ODraftMail;
/*    */ import com.jcrj.entity.OInMail;
/*    */ import com.jcrj.entity.OMailLog;
/*    */ import com.jcrj.entity.OMailReceiver;
/*    */ import org.springframework.orm.hibernate3.HibernateTemplate;
/*    */ 
/*    */ public class MailDaoImp extends AbstractBaseDaoImp
/*    */   implements MailDao
/*    */ {
/*    */   public void saveMail(OInMail mail)
/*    */   {
/* 16 */     getHibernateTemplate().save(mail);
/*    */   }
/*    */ 
/*    */   public void deleteMail(OInMail mail)
/*    */   {
/* 23 */     getHibernateTemplate().delete(mail);
/*    */   }
/*    */ 
/*    */   public void saveDraftMail(ODraftMail mail) {
/* 27 */     getHibernateTemplate().saveOrUpdate(mail);
/*    */   }
/*    */   public void deleteDraftMail(ODraftMail mail) {
/* 30 */     getHibernateTemplate().delete(mail);
/*    */   }
/*    */ 
/*    */   public void updateInMail(OInMail mail) {
/* 34 */     getHibernateTemplate().update(mail);
/*    */   }
/*    */ 
/*    */   public void deleteMailReceiver(OMailReceiver receiver) {
/* 38 */     getHibernateTemplate().delete(receiver);
/*    */   }
/*    */ 
/*    */   public void saveMailLog(OMailLog mailLog) {
/* 42 */     getHibernateTemplate().save(mailLog);
/*    */   }
/*    */ 
/*    */   public void saveMailReceiver(OMailReceiver receiver) {
/* 46 */     getHibernateTemplate().save(receiver);
/*    */   }
/*    */ 
/*    */   public void updateMailReceiver(OMailReceiver receiver) {
/* 50 */     getHibernateTemplate().update(receiver);
/*    */   }
/*    */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     com.jcrj.dao.imp.MailDaoImp
 * JD-Core Version:    0.6.0
 */